/*
 * LED_test.cxx
 * 
 */


#include <iostream>
#include "LED.h"

#define KEY 26

using namespace std;

LED led(7);

void func(void)
{
	if(led.getState()==false)
		led.on();
	else
		led.off();
}

int main(int argc, char **argv)
{
	
	pinMode(KEY,INPUT);
	
	wiringPiISR(KEY,INT_EDGE_FALLING,func);
	while(1){}
	
	return 0;
}

